/*
 * @Author: wuzhouhai wzh200x@126.com
 * @Date: 2024-03-28 16:35:19
 * @LastEditors: wuzhouhai wzh200x@126.com
 * @LastEditTime: 2024-03-29 15:07:14
 * @FilePath: \phoenix-client-damo\assets\src\phoenix\platform\platformManager.ts
 * @Description: 
 */
import { PlatformDefine } from "../defines/platform.define";
import { IPlatform } from "../interface/platform.interface";
import { PlatformAlipay } from "./platform.alipay";
import { PlatformPhoenix } from "./platform.phoenix";

export class PlatformManager {
    public static GeneratePlatform(platform:PlatformDefine):IPlatform{
        switch(platform){
            case PlatformDefine.PhoenixGame:
                return new PlatformPhoenix();
            case PlatformDefine.AliPayGame:
                return new PlatformAlipay();
        }
        return null;
    }
}